package com.yunyouyi.CacheModel;

class CacheEntry<V> {
    final V value;
    final long expireTime; // 过期时间戳（毫秒）

    public CacheEntry(V value, long expireTime) {
        this.value = value;
        this.expireTime = expireTime;
    }

    // 判断是否已过期
    public boolean isExpired() {
        return System.currentTimeMillis() > expireTime;
    }
}